package com.examples.string;

public class BenchMarkBuliderNBuffer {

	
	public static void main(String[] args) {
		
		int N = 7777777; long t; 
		StringBuffer sb = new StringBuffer();
		t = System.currentTimeMillis();
		for (int i = N; i-- > 0;) {
			sb.append("");
		}
		System.out.println(System.currentTimeMillis() - t);
		StringBuilder sb1 = new StringBuilder();
		t = System.currentTimeMillis();
		for (int i = N; i-- > 0;) {
			sb1.append("");
		}
		System.out.println(System.currentTimeMillis() - t);
	}

}